﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebRSSBuilder.ASP
{
    public partial class Error : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["ErrorNo"] != null)
            {
                int ErrorNo = int.Parse(Session["ErrorNo"].ToString());
                LabelErrorNo.Text = "Error " + ErrorNo.ToString();
                switch (ErrorNo)
                {
                    case 1: 
                        this.LabelMsg.Text = "You are not authorized to view the page";
                        break ;
                    case 2:
                        this.LabelMsg.Text = "The file you requested is not found";
                        break;
                    default: 
                        this.LabelMsg.Text = Session["ErrorMsg"].ToString() ;
                        break; 

                }
            }
        }
    }
}